package com.md.api.dao;

import com.md.api.entity.UserVip;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface UserVipMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserVip record);

    UserVip getByOrderNo(String orderNo);

    List<UserVip> getByUserId(String userId);

    int updateVip(UserVip record);
    int updateStatus(@Param("orderNo") String orderNo,@Param("status") Integer status);
    UserVip getCurrentVip(String userId);

    List<UserVip> getLatestExpireVip();
    List<UserVip> getExpireVip();

    void handleExpireUser();
}